import request from '@/utils/request'

// 查询人脸识别管理列表
export function listFace(query) {
  return request({
    url: '/business/face/list',
    method: 'get',
    params: query
  })
}

// 查询人脸识别管理详细
export function getFace(faceId) {
  return request({
    url: '/business/face/' + faceId,
    method: 'get'
  })
}

// 新增人脸识别管理
export function addFace(data) {
  return request({
    url: '/business/face',
    method: 'post',
    data: data
  })
}

// 修改人脸识别管理
export function updateFace(data) {
  return request({
    url: '/business/face',
    method: 'put',
    data: data
  })
}

// 删除人脸识别管理
export function delFace(faceId) {
  return request({
    url: '/business/face/' + faceId,
    method: 'delete'
  })
}

// 导出人脸识别管理
export function exportFace(query) {
  return request({
    url: '/business/face/export',
    method: 'get',
    params: query
  })
}

// 审核业主认证
export function reviewFace(data) {
  return request({
    url: '/business/face/review',
    method: 'post',
    data: data
  })
}

// 审核业主认证
export function dispatchFaceManual(faceId) {
  return request({
    url: '/business/face/dispatch_manual',
    method: 'get',
    params: {
      faceId: faceId
    }
  })
}
